home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Cream of the Crop 1
/
Cream of the Crop 1.iso
/
PROGRAM
/
ULARN.ARJ
/
ULARN.TAR
/
ularn
/
Makefile
< prev
next >
Wrap
Makefile
|
1989-10-25
|
3KB
|
119 lines
# your favorite compiler
CC = cc
# SYSV or BSD
#UNIX = SYSV
UNIX = BSD
# location of data files
HOME = /u6/jeffw/games/lib
# final location of binary (for 'make install')
BINDIR = /u6/jeffw/bin
# user id of wizard (wizard password is defined in config.c)
WIZID = 100
#uid=100(jeffw) gid=1000(se)
# name of program
GAME = Ularn
# termlib options
TERMLIB = -ltermlib
# program options
OPTIONS = -DWIZID=$(WIZID) -D$(UNIX)
# compile flags
#CFLAGS = -M3e -Ox -s $(OPTIONS) -DHOME=\"$(HOME)/\"
#CFLAGS = -M3e -g $(OPTIONS) -DHOME=\"$(HOME)/\"
# link flags
#LDFLAGS= -s
LDFLAGS =
# the object files
OBJ = bill.o config.o create.o data.o diag.o display.o fortune.o\
global.o help.o io.o main.o monster.o moreobj.o movem.o object.o\
regen.o savelev.o scores.o signal.o store.o tok.o nap.o
# the source files
SRC = bill.c config.c create.c data.c diag.c display.c fortune.c\
global.c help.c io.c main.c monster.c moreobj.c movem.c object.c\
regen.c savelev.c scores.c signal.c store.c tok.c nap.c
# the header file
HDR = header.h
UTIL = to_ansi
UTIL_OBJ = to_ansi.o
UTIL_SRC = to_ansi.c
##########################################################################
love: $(GAME)
$(GAME): $(OBJ)
$(CC) $(CFLAGS) $(LDFLAGS) $(OBJ) -o $(GAME) $(TERMLIB)
@ls -ls $(GAME)
@echo done
.c.o:
$(CC) -c $(CFLAGS) $<
$(OBJ): header.h
$(UTIL): $(UTIL_OBJ)
$(CC) -o $(UTIL) $(UTIL_OBJ)
Uhelp: $(UTIL) Uhelp.no_control
$(UTIL) <Uhelp.no_control >Uhelp
tags: tag
tag:
rm -f Tags
ctags -x $(SRC) $(HDR) > Tags
ctags $(SRC) $(HDR)
lint: $(SRC)
rm -f Lint.out
lint $(SRC) $(TERMLIB) > Lint.out
install: $(GAME) Umaps Ufortune Uhelp
touch Uscore
chmod 644 Umaps Ufortune Uhelp
chmod 666 Uscore
-mkdir $(HOME)
cp Uscore Umaps Ufortune Uhelp $(HOME)
chmod 711 $(HOME)
chmod 711 $(GAME)
-mv $(GAME) $(BINDIR)
clean:
rm -f core *.o $(GAME)
#
##########################################################################
# shar the source
##########################################################################
#
SHAR = /u3/syseng/jeffw/bin/shar -a
SHAR1 = bill.c config.c create.c diag.c fortune.c help.c io.c tok.c
SHAR2 = data.c display.c regen.c savelev.c nap.c
SHAR3 = global.c header.h moreobj.c signal.c Makefile
SHAR4 = monster.c
SHAR5 = main.c movem.c
SHAR6 = object.c MANIFEST README
SHAR7 = scores.c store.c
SHAR8 = Ufortune Uhelp Umaps
shar:
$(SHAR) -m 1 -n 8 $(SHAR1) > Ushar.1
$(SHAR) -m 2 -n 8 $(SHAR2) > Ushar.2
$(SHAR) -m 3 -n 8 $(SHAR3) > Ushar.3
$(SHAR) -m 4 -n 8 $(SHAR4) > Ushar.4
$(SHAR) -m 5 -n 8 $(SHAR5) > Ushar.5
$(SHAR) -m 6 -n 8 $(SHAR6) > Ushar.6
$(SHAR) -m 7 -n 8 $(SHAR7) > Ushar.7
@cp $(HOME)/Ufortune .
@cp $(HOME)/Uhelp .
@cp $(HOME)/Umaps .
$(SHAR) -m 8 -n 8 $(SHAR8) > Ushar.8